//
//  CWSportTrackingLine.h
//  大神专制黑马行
//
//  Created by chenWei on 2017/5/11.
//  Copyright © 2017年 陈伟. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <MAMapKit/MAMapKit.h>
#import "CWSportPolyline.h"


//轨迹线条模型
@interface CWSportTrackingLine : NSObject

/**
 获取起始位置和终点位置

 @param startLocation 起始位置
 @param endLocation 终点位置
 @return 轨迹线条模型
 */
- (id)initWithStartLocation:(CLLocation *)startLocation endLocation:(CLLocation *)endLocation;

@property(nonatomic, strong) CLLocation *startLocation;

@property(nonatomic, strong) CLLocation *endLocation;

//轨迹线条
@property(nonatomic, strong) CWSportPolyline *polyline;

//速度
@property(nonatomic, assign, readonly) float speed;

//时间
@property(nonatomic, assign, readonly) float time;

//距离
@property(nonatomic, assign, readonly) float distance;







@end
